Optimal. Leaf size=15 \[ \frac{\tanh ^{-1}\left (\frac{\tanh (x)}{\sqrt{2}}\right )}{\sqrt{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0117789, antiderivative size = 15, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {3181, 206} \[ \frac{\tanh ^{-1}\left (\frac{\tanh (x)}{\sqrt{2}}\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3181
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{1+\cosh ^2(x)} \, dx &=\operatorname{Subst}\left (\int \frac{1}{1-2 x^2} \, dx,x,\coth (x)\right )\\ &=\frac{\tanh ^{-1}\left (\frac{\tanh (x)}{\sqrt{2}}\right )}{\sqrt{2}}\\ \end{align*}
Mathematica [F] time = 0.0221849, size = 0, normalized size = 0. \[ \int \frac{1}{1+\cosh ^2(x)} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.012, size = 86, normalized size = 5.7 \begin{align*}{\frac{\sqrt{2}}{8}\ln \left ({ \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+\sqrt{2}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}-\sqrt{2}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}} \right ) }-{\frac{\sqrt{2}}{8}\ln \left ({ \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}-\sqrt{2}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+\sqrt{2}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.56939, size = 46, normalized size = 3.07 \begin{align*} -\frac{1}{4} \, \sqrt{2} \log \left (-\frac{2 \, \sqrt{2} - e^{\left (-2 \, x\right )} - 3}{2 \, \sqrt{2} + e^{\left (-2 \, x\right )} + 3}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.12362, size = 215, normalized size = 14.33 \begin{align*} \frac{1}{4} \, \sqrt{2} \log \left (-\frac{3 \,{\left (2 \, \sqrt{2} - 3\right )} \cosh \left (x\right )^{2} - 4 \,{\left (3 \, \sqrt{2} - 4\right )} \cosh \left (x\right ) \sinh \left (x\right ) + 3 \,{\left (2 \, \sqrt{2} - 3\right )} \sinh \left (x\right )^{2} + 2 \, \sqrt{2} - 3}{\cosh \left (x\right )^{2} + \sinh \left (x\right )^{2} + 3}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.951359, size = 60, normalized size = 4. \begin{align*} - \frac{\sqrt{2} \log{\left (4 \tanh ^{2}{\left (\frac{x}{2} \right )} - 4 \sqrt{2} \tanh{\left (\frac{x}{2} \right )} + 4 \right )}}{4} + \frac{\sqrt{2} \log{\left (4 \tanh ^{2}{\left (\frac{x}{2} \right )} + 4 \sqrt{2} \tanh{\left (\frac{x}{2} \right )} + 4 \right )}}{4} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.23112, size = 46, normalized size = 3.07 \begin{align*} \frac{1}{4} \, \sqrt{2} \log \left (-\frac{2 \, \sqrt{2} - e^{\left (2 \, x\right )} - 3}{2 \, \sqrt{2} + e^{\left (2 \, x\right )} + 3}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]